.\" Copyright (c) Rong Tao (rtoax@foxmail.com)
.\"
.\" SPDX-License-Identifier: GPL-2.0-or-later
.\"
.TH ulpconfig 8  "2024-07-20" "USER COMMANDS"
.SH NAME
ulpconfig \- Print ULPatch compilation options
.SH SYNOPSIS
.B ulpconfig
[\fI\,OPTION\/\fR]...
.SH DESCRIPTION
.\" Add any additional description here
.PP
\fBulpconfig\fP makes it easier to build ulpatch that use ULPatch. It  can print the  compiler flags, linker  flags  and  object  libraries  needed  to link against ULPatch.

Good output to \fBstdout\fP, Wrong output to \fBstderr\fP.

This program is a basic command of ULPatch.

.SH REQUIREMENTS
bash, gcc, glibc.

.SH ARGUMENTS
.SS
\fB\-\-cflags\fR
Print the C compiler flags needed to use ULPatch headers.

.SS
\fB\-\-ldflags\fR
Print the flags needed to link against ULPatch libraries.

.SS
\fB\-\-libs\fR
Print all the libraries needed to link against the specified ULPatch components, including any dependencies.

.SS
\fB\-\-cc\fR \fICOMPILER\fP
Specify compiler, default: \fBgcc\fP, you should specify this argument before \fB--cflags\fP. Other option: \fBclang\fP.

.SS
\fB\-\-ld\fR \fILINKER\fP
Specify compiler, default: \fBld\fP, you should specify this argument before \fB--ldflags\fP and \fB--libs\fP. Other option: \fBld.bfd\fP, \fBmold\fP.

.SS
\fB\-h\fR, \fB\-\-help\fR
Show help information.

.SS
\fB\-V\fR, \fB\-\-version\fR
Show version.
If \fB--verbose\fP is used at the same time, more information will be displayed.

.SS
\fB\-v\fR, \fB\-\-verbose\fR
Show verbose of running.

.EE

.SH OS
Linux

.SH STABILITY
Unstable - in development.

.SH AUTHOR
Written by Rong Tao
.SH SEE ALSO
.BR ulpatch (8),
.BR ulpinfo (8),
.BR ulftrace (8),
.BR ultask (8)
